#pragma once
#include "vec3.h"
#include "vec2.h"

namespace mray{
	struct BaseMaterial;
	struct BaseObject;
	struct World;

	struct Result{
		Result(World* pWorld):m_pWorld(pWorld){}

		//p: collision point
		//n: normal in collision point
		//d: vector form collosion point to camera
		vec3 p, n, d;
		vec2 t;
		BaseMaterial* pMtl;
		World* m_pWorld;
	};
}